package org.javaboy.vhr.mapper;

import org.apache.ibatis.annotations.Param;
import org.javaboy.vhr.model.Department;
import org.javaboy.vhr.model.Employee;
import org.javaboy.vhr.model.Employeeremove;
import org.javaboy.vhr.model.Position;
import org.javaboy.vhr.vo.EmpRemoveVo;

import java.util.Date;
import java.util.List;

public interface EmployeeremoveMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Employeeremove record);

    int insertSelective(Employeeremove record);

    Employeeremove selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employeeremove record);

    int updateByPrimaryKey(Employeeremove record);

    Long getTotal(@Param("move") Employeeremove employeeremove, @Param("beginDateScope") Date[] beginDateScope);

    List<EmpRemoveVo> getEmployeeremoveByPage(@Param("page") Integer page, @Param("size") Integer size, @Param("emp") Employeeremove employeeremove, @Param("beginDateScope") Date[] beginDateScope);

    List<Department> getTotalDepartment();

    //获取所有的职位，做下拉显示
    List<Position> getTotalPosition();


}